package com.scg33.dominio;

import java.util.Date;

import org.zkoss.calendar.api.CalendarEvent;
import org.zkoss.calendar.impl.SimpleCalendarEvent;

import com.coreweb.domain.Domain;

public class CalendarioEvento  extends Domain  implements CalendarEvent{

	long idCapitulo = 0;
	
	Date beginDate = new Date(); 
	Date endDate = new Date(); 
    String title = "";
    String content = "";
    String contentColor = "#6699ff"; 
    String headerColor = "#3366ff"; 
    boolean locked = false;
    String zclass = "";
	
    
    
    public CalendarioEvento getCopia(){
    	CalendarioEvento ce = new CalendarioEvento();
    	ce.setIdCapitulo(this.getIdCapitulo());
    	ce.setBeginDate(this.getBeginDate());
    	ce.setEndDate(this.getEndDate());
    	ce.setTitle(this.getTitle());
    	ce.setContent(this.getContent());
    	ce.setContentColor(this.getContentColor());
    	ce.setHeaderColor(this.getHeaderColor());
    	ce.setLocked(this.isLocked());
    	ce.setZclass(this.getZclass());
       	return ce;
    }
    
    public void setCalendarioEvento(CalendarioEvento ce){
    	this.setIdCapitulo(ce.getIdCapitulo());
    	this.setBeginDate(ce.getBeginDate());
    	this.setEndDate(ce.getEndDate());
    	this.setTitle(ce.getTitle());
    	this.setContent(ce.getContent());
    	this.setContentColor(ce.getContentColor());
    	this.setHeaderColor(ce.getHeaderColor());
    	this.setLocked(ce.isLocked());
    	this.setZclass(ce.getZclass());
    	
    }
    
    
	@Override
	public Date getBeginDate() {
		// TODO Auto-generated method stub
		return this.beginDate;
	}

	@Override
	public String getContent() {
		// TODO Auto-generated method stub
		return this.content;
	}

	@Override
	public String getContentColor() {
		// TODO Auto-generated method stub
		return this.contentColor;
	}

	@Override
	public Date getEndDate() {
		// TODO Auto-generated method stub
		return this.endDate;
	}

	@Override
	public String getHeaderColor() {
		// TODO Auto-generated method stub
		return this.headerColor;
	}

	@Override
	public String getTitle() {
		// TODO Auto-generated method stub
		return this.title;
	}

	@Override
	public String getZclass() {
		// TODO Auto-generated method stub
		return this.zclass;
	}

	@Override
	public boolean isLocked() {
		// TODO Auto-generated method stub
		return this.locked;
	}

	public void setBeginDate(Date beginDate) {
		this.beginDate = beginDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public void setContentColor(String contentColor) {
		this.contentColor = contentColor;
	}

	public void setHeaderColor(String headerColor) {
		this.headerColor = headerColor;
	}

	public void setLocked(boolean locked) {
		this.locked = locked;
	}

	public void setZclass(String zclass) {
		this.zclass = zclass;
	}

	@Override
	public int compareTo(Object o) {
		// TODO Auto-generated method stub
		return 0;
	}

	public long getIdCapitulo() {
		return idCapitulo;
	}

	public void setIdCapitulo(long idCapitulo) {
		this.idCapitulo = idCapitulo;
	}

	
}
